﻿//using Irclib;
//using Microsoft.VisualStudio.TestTools.UnitTesting;
//using System;
//using System.Text;
//using System.Collections.Generic;
//using System.Net.Sockets;
//using System.IO;

//namespace TestIrclib
//{
    
    
//    /// <summary>
//    ///This is a test class for IrcConnectionTest and is intended
//    ///to contain all IrcConnectionTest Unit Tests
//    ///</summary>
//    [TestClass()]
//    public class IrcConnectionTest
//    {


//        private TestContext testContextInstance;

//        /// <summary>
//        ///Gets or sets the test context which provides
//        ///information about and functionality for the current test run.
//        ///</summary>
//        public TestContext TestContext
//        {
//            get
//            {
//                return testContextInstance;
//            }
//            set
//            {
//                testContextInstance = value;
//            }
//        }

//        #region Additional test attributes
//        // 
//        //You can use the following additional attributes as you write your tests:
//        //
//        //Use ClassInitialize to run code before running the first test in the class
//        //[ClassInitialize()]
//        //public static void MyClassInitialize(TestContext testContext)
//        //{
//        //}
//        //
//        //Use ClassCleanup to run code after all tests in a class have run
//        //[ClassCleanup()]
//        //public static void MyClassCleanup()
//        //{
//        //}
//        //
//        //Use TestInitialize to run code before running each test
//        //[TestInitialize()]
//        //public void MyTestInitialize()
//        //{
//        //}
//        //
//        //Use TestCleanup to run code after each test has run
//        //[TestCleanup()]
//        //public void MyTestCleanup()
//        //{
//        //}
//        //
//        #endregion


//        /// <summary>
//        ///A test for IrcConnection Constructor
//        ///</summary>
//        [TestMethod()]
//        public void IrcConnectionConstructorTest()
//        {
//            Uri server = new Uri("ircs://irc.rizon.net"); // TODO: make our own IRC server
//            Encoding serverEncoding = new UTF8Encoding(); 
//            IrcConnection target = new IrcConnection(server, serverEncoding);
//            Assert.IsNotNull(target);
//        }

//        /// <summary>
//        ///A test for Dispose
//        ///</summary>
//        [TestMethod()]
//        public void DisposeTest()
//        {
//            Uri server = new Uri("ircs://irc.rizon.net"); // TODO: make our own IRC server
//            Encoding serverEncoding = new UTF8Encoding();
//            IrcConnection target = new IrcConnection(server, serverEncoding);
//            target.Dispose();
//            Assert.Inconclusive("A method that does not return a value cannot be verified.");
//        }

//        /// <summary>
//        ///A test for Dispose
//        ///</summary>
//        [TestMethod()]
//        [DeploymentItem("Irclib.dll")]
//        public void DisposeTest1()
//        {
//            //IrcConnection_Accessor target = new IrcConnection_Accessor(); // TODO: Initialize to an appropriate value
//            //bool disposeManaged = false; // TODO: Initialize to an appropriate value
//            //target.Dispose(disposeManaged);
//            //Assert.Inconclusive("A method that does not return a value cannot be verified.");
//        }

//        /// <summary>
//        ///A test for Initialize
//        ///</summary>
//        [TestMethod()]
//        public void InitializeTest()
//        {
//            //Uri server = new Uri("irc://192.168.56.2:6667"); // TODO: make our own IRC server
//            //Encoding serverEncoding = new ASCIIEncoding();
//            //IrcConnection target = new IrcConnection(server, serverEncoding);
//            //target.Connect();
//            //target.Initialize();
//            ////target.StartPing();
//            //target.SetNick("test");
//            //target.SetUser("test", "testy mctest", false);
//            //target.Join("#test");
//            //string outstring;
//            //while((outstring = target.ReadLine()) != null)
//            //    System.Console.WriteLine(outstring);
//            ////Assert.Inconclusive("A method that does not return a value cannot be verified.");
//            //target.Dispose();
//        }

//        /// <summary>
//        ///A test for Join
//        ///</summary>
//        [TestMethod()]
//        public void JoinTest()
//        {
//            //Uri server = new Uri("ircs://irc.rizon.net"); // TODO: make our own IRC server
//            //Encoding serverEncoding = new UTF8Encoding();
//            //IrcConnection target = new IrcConnection(server, serverEncoding);
//            //IEnumerable<string> channelList = null; // TODO: Initialize to an appropriate value
//            //target.Join(channelList);
//            //Assert.Inconclusive("A method that does not return a value cannot be verified.");
//        }

//        /// <summary>
//        ///A test for Join
//        ///</summary>
//        [TestMethod()]
//        public void JoinTest1()
//        {
//            //Uri server = new Uri("ircs://irc.rizon.net"); // TODO: make our own IRC server
//            //Encoding serverEncoding = new UTF8Encoding();
//            //IrcConnection target = new IrcConnection(server, serverEncoding);
//            //string channel = string.Empty; // TODO: Initialize to an appropriate value
//            //target.Join(channel);
//            //Assert.Inconclusive("A method that does not return a value cannot be verified.");
//        }

//        /// <summary>
//        ///A test for PingServer
//        ///</summary>
//        [TestMethod()]
//        [DeploymentItem("Irclib.dll")]
//        public void PingServerTest()
//        {
//            //IrcConnection_Accessor target = new IrcConnection_Accessor(); // TODO: Initialize to an appropriate value
//            //target.PingServer();
//            //Assert.Inconclusive("A method that does not return a value cannot be verified.");
//        }

//        /// <summary>
//        ///A test for SetNick
//        ///</summary>
//        [TestMethod()]
//        public void SetNickTest()
//        {
//            Uri server = new Uri("ircs://irc.rizon.net"); // TODO: make our own IRC server
//            Encoding serverEncoding = new UTF8Encoding();
//            IrcConnection target = new IrcConnection(server, serverEncoding);
//            string nick = string.Empty; // TODO: Initialize to an appropriate value
//            target.SetNick(nick);
//            Assert.Inconclusive("A method that does not return a value cannot be verified.");
//        }

//        /// <summary>
//        ///A test for StartPing
//        ///</summary>
//        [TestMethod()]
//        public void StartPingTest()
//        {
//            Uri server = new Uri("ircs://irc.rizon.net"); // TODO: make our own IRC server
//            Encoding serverEncoding = new UTF8Encoding();
//            IrcConnection target = new IrcConnection(server, serverEncoding);
//            target.StartPing();
//            Assert.Inconclusive("A method that does not return a value cannot be verified.");
//        }

//        /// <summary>
//        ///A test for Client
//        ///</summary>
//        [TestMethod()]
//        [DeploymentItem("Irclib.dll")]
//        public void ClientTest()
//        {
//            IrcConnection_Accessor target = new IrcConnection_Accessor(); // TODO: Initialize to an appropriate value
//            TcpClient expected = null; // TODO: Initialize to an appropriate value
//            TcpClient actual;
//            target.Client = expected;
//            actual = target.Client;
//            Assert.AreEqual(expected, actual);
//            Assert.Inconclusive("Verify the correctness of this test method.");
//        }

//        /// <summary>
//        ///A test for GetLine
//        ///</summary>
//        [TestMethod()]
//        public void GetLineTest()
//        {
//            Uri server = new Uri("ircs://irc.rizon.net"); // TODO: make our own IRC server
//            Encoding serverEncoding = new UTF8Encoding();
//            IrcConnection target = new IrcConnection(server, serverEncoding);
//            string actual;
//            actual = target.ReadLine();
//            Assert.Inconclusive("Verify the correctness of this test method.");
//        }

//        /// <summary>
//        ///A test for Reader
//        ///</summary>
//        [TestMethod()]
//        [DeploymentItem("Irclib.dll")]
//        public void ReaderTest()
//        {
//            IrcConnection_Accessor target = new IrcConnection_Accessor(); // TODO: Initialize to an appropriate value
//            StreamReader expected = null; // TODO: Initialize to an appropriate value
//            StreamReader actual;
//            target.Reader = expected;
//            actual = target.Reader;
//            Assert.AreEqual(expected, actual);
//            Assert.Inconclusive("Verify the correctness of this test method.");
//        }

//        /// <summary>
//        ///A test for Writer
//        ///</summary>
//        [TestMethod()]
//        [DeploymentItem("Irclib.dll")]
//        public void WriterTest()
//        {
//            IrcConnection_Accessor target = new IrcConnection_Accessor(); // TODO: Initialize to an appropriate value
//            StreamWriter expected = null; // TODO: Initialize to an appropriate value
//            StreamWriter actual;
//            target.Writer = expected;
//            actual = target.Writer;
//            Assert.AreEqual(expected, actual);
//            Assert.Inconclusive("Verify the correctness of this test method.");
//        }
//    }
//}
